from typing import Optional
from pydantic import BaseModel, Field


class GlobalResponse(BaseModel):
    """
    全局数据响应模型
    """
    code: Optional[str] = Field(default='0000', description='状态码：0000 or 0001')
    msg: Optional[str] = Field(default='success', description='信息')
